{extend name="public/base"/}
{block name="body"}
<div class="main-box no-header clearfix">

	<!-- 标题栏 -->
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>查看留言</h2>
		</div>
		<div class="pull-right">
		</div>
	</header>

	<div class="main-box-body clearfix">
		<!-- 修改密码表单 -->
		<form method="post" class="form-horizontal">
			<div class="form-group">
				<label class="col-lg-2 control-label">UID/微信号：</label>
				<div class="col-lg-6 col-sm-10">
					{$info['user_id']}/{$info['user_id']|get_table_field="id","nickname","wx_user"}
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">用户名：</label>
				<div class="col-lg-6 col-sm-10">
          {$info['user_id']|get_table_field="id","name","wx_user"}
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">留言时间：</label>
				<div class="col-lg-6 col-sm-10">
          {$info['create_time']|time_format}
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">留言内容：</label>
				<div class="col-lg-6 col-sm-10">
          {$info['content']}
				</div>
			</div>

					<div class="form-group">
						<label class="col-lg-2 control-label">回复内容：</label>
						<div class="col-lg-6 col-sm-10">

							{empty name="$info.messageReply.content"}
								<textarea name="content" rows="5" cols="50"></textarea>
								{else/}
							{$info.messageReply.content}
							{/empty}

						</div>
					</div>
	      <div class="form-group">
					<label class="col-lg-2 control-label">管理员</label>
					<div class="col-lg-6 col-sm-10">
	          {$info.messageReply.admin_id|get_table_field="uid","username","member"}
					</div>
				</div>

			<div class="form-group">
				<div class="col-lg-offset-2 col-lg-10">
					{empty name="$info.messageReply.content"}
						<button type="submit" class="btn btn-primary submit-btn ajax-post" target-form="form-horizontal">确 认</button>
					{/empty}

					<button class="btn btn-default btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
				</div>
			</div>
		</form>
	</div>
</div>
{/block}
